package com.ply.dao;

import com.ply.pojo.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface UserRoleDao extends JpaRepository<UserRole,Integer>, JpaSpecificationExecutor<UserRole> {

    /**
     * 通过id查询用户角色表集合
     * @param userId
     * @return
     */
    List<UserRole> findAllByUserid(Integer userId);



}
